package com.shop.cereshop.admin.param.wallet;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@ApiModel(value = "WalletParam", description = "钱包参数")
@Accessors(chain = true)
public class WalletParam {
    @ApiModelProperty(value = "用户ID", example = "8324", notes = "用户唯一标识，默认值：无")
    public Long buyerUserId;

    @ApiModelProperty(value = "操作类型(1-解冻，2-冻结)")
    @NotNull(message = "参数不为空")
    public Integer actionType;

    @ApiModelProperty(value = "交易金额")
    public BigDecimal amount;

    @ApiModelProperty(value = "冻结时间(时间戳)")
    public Long expireTime;

    @ApiModelProperty(value = "冻结时间(业务字段，不需要传)")
    public String expireDateTime;
}
